version="0.0.1"
image="jt-gateway"
module="jt-gateway"
package_version=`git rev-parse --short HEAD`
# package_version=`date +%Y%m%d%H%M%S`
docker_url=registry.cn-hangzhou.aliyuncs.com/gao-server-images/

  docker build -t=${docker_url}${image}:${version}_${package_version} --build-arg JAR_MODULE=${module} ./ &&
  docker tag ${docker_url}${image}:${version}_${package_version} ${docker_url}${image}:latest  &&
  docker push ${docker_url}${image}:${version}_${package_version} &&
  docker push ${docker_url}${image}:latest
